package com.lrkj.back.service.impl;

import java.util.List;
import java.util.Map;

import com.lrkj.back.entity.ZsMiejunBuhege;
import com.lrkj.back.mapper.ZsMiejunBuhegeMapper;
import com.lrkj.back.service.ZsMiejunBuhegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service("miejunBuhege")
public class ZsMiejunBuhegeServiceImpl extends ParentServiceImpl<ZsMiejunBuhege> implements ZsMiejunBuhegeService {

    @Autowired
    private ZsMiejunBuhegeMapper zsMiejunBuhegeMapper;

    @Override
    protected DBInterface<ZsMiejunBuhege> getDao() throws DBException {
        return zsMiejunBuhegeMapper;
    }

    @Override
    public int insertBatch(List<ZsMiejunBuhege> list) throws DBException {
        return zsMiejunBuhegeMapper.insertBatch(list);
    }

    @Override
    public List<ZsMiejunBuhege> findAll(Map<String, Object> map) throws DBException {
        return zsMiejunBuhegeMapper.findAll(map);
    }

}
